set(TEST_PROGS
	test_fifo_poll
	test_fifo_select
	test_fifo_epoll
)

foreach(PROG ${TEST_PROGS})
	add_executable(${PROG} ${PROG}.cpp)
	target_include_directories(${PROG}
		PRIVATE ${CMAKE_SOURCE_DIR}/inc)
	target_link_libraries(${PROG} iomux)

	add_test(NAME ${PROG}
		COMMAND $<TARGET_FILE:${PROG}> 3000
	)
endforeach()
